<? if(!defined('IN_FANWE')) exit('Access Denied'); ?>
<?php 
$css_list[0]['url'][] = './tpl/css/zone.css';
$js_list[0] = './tpl/js/zone.js';
    $js_list[1] = './tpl/js/im_006.js';
 include template('inc/header'); ?><div id="body" class="fm990">
<div id="content">
        	<div class="sharelist" id="zhimeisheetbar">
                	<div class="sheet cf">
                    	<div class="floatright">
<span><a href="<?php echo FU('u/album',array("uid"=>$home_uid)); ?>" class="blue"><?=$home_user['albums']?>个杂志</a></span>
<span class="dot"></span>
<span><a href="<?php echo FU('u/talk',array("uid"=>$home_uid)); ?>" class="blue"><?=$home_user['shares']?>个分享</a></span>
<span class="dot"></span>
<span class="like"><a href="<?php echo FU('u/fav',array("uid"=>$home_uid)); ?>" class="blue"><?=$home_user['favs']?>个喜欢</a></span>
                        </div>
                        <span class="sheetname marginleft" id="fix-string05"><?=$home_user['user_name']?></span>
                    </div>
                </div>
            <div style="clear: both;"></div>
            <div id="contentMain"><? include template('inc/u/u_menu'); ?>                <!--预加载杂志社数据-->
            
            <? if($_FANWE['request']['action'] == 'album') { ?>
            <? if(is_array($album_list)) { foreach($album_list as $list) { ?>           
            <div class="mbox">
            	<div class="followlist">
                	<h3 class="mboxTitle">
                    	<span class="number floatright">共<?=$list['img_count']?>张</span>
                        <span class="t" title="<?=$list['title']?>"><?=$list['title']?></span>
                    </h3>
                    <div class="list">
                       <ul>
                            <?php $j = 1; ?>                            <?php $list_img_counts = array(0,0,0,0,0,0,0,0,0); ?>                            <? if(is_array($list_img_counts)) { foreach($list_img_counts as $imgkey => $imgindex) { ?>                            <?php $img = $list['album_imgs'][$imgkey]; ?>                            <? if(!empty($img)) { ?>
                                <li style="*width:60px; *margin-bottom:5px;"><a target="_blank" href="<?=$list['url']?>"><img src="<?php echo getImgName($img,60,60,1); ?>" width="60" height="60" /></a></li>
                            <? } else { ?>
                            <li style="*margin-bottom:5px;"><a target="_blank" class="add_img" href="<?=$list['url']?>"><img src="./tpl/images/no-img.gif" width="60" height="60"/></a></li>
                            <? } ?>
                            <? if($j % 3 != 0) { ?>
                            <li><span></span></li>
                            <? } ?>
                            <?php $j++; ?>                            <? } } ?>
                        </ul>                     	
                    </div>
                    <? if($list.isMe == 1) { ?>
                    	<div class="follow">
                        	<a href="javascript:;" status="follow" class="longbutton concern jquery-option" onclick="$.Edit_Album(<?=$list['id']?>)" >编辑</a>
                        </div>
                    <? } else { ?>
                   		<div class="follow">
                        	<a href="<?=$list['url']?>" status="follow" class="longbutton concern jquery-option">查看</a>
                        </div>
                    <? } ?>
                 </div>
            </div>
            <? } } ?>
            <? } ?>
            
            <!--预加载用户数据-->
            </div>
<div id="imloading" class="imfootloading" style="display:none;"><div class="loading">正在加载，请稍后......</div></div>
<div id="firstload" class="firstload" style="display:none;">加载中…</div>
</div>
</div>
</div>
<script>
jQuery(function($){

$("#contentMain .mbox").hover(function() {
                    $(this).addClass("hover");
                },
                function() {
                    $(this).removeClass("hover");
                });

var linkUrl = '<?=$link_url?>',jsonUrl = '<?=$json_url?>';
linkUrl = linkUrl +"&v=" +Math.random()*99999999;
autoLayout_album.init({
contentID:"contentMain",
rightLoad:true,
leftID:"",
rightID:["rightLabel1"],
linkUrl:linkUrl,
pageAuto: true,
loadingID:"imloading"
});
autoLayout_album.eachAction(jsonUrl);
});

</script><? include template('inc/footer'); ?>